Validators pattern decimal and minus numbers

101

Validators pattern decimal and minus numbers -

new FormControl({value: field.value}, [Validators.required, Validators.pattern(/^-?(0|[1-9]\d*)?$/)])

Comments

Submit
0 Comments